import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DictIntIntHelper } from "./DictIntIntHelper";
type int = number;
//class SGuildMap
    
    export  class SGuildMap extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildMap();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.guildId);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.mapId);
            DictIntIntHelper.write(arg1, this.structures);
            arg1.writeBool(this.needOpenGuildFlame);
            arg1.writeInt(this.reiki);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildId = arg1.readInt();
            this.guildName = arg1.readString();
            this.mapId = arg1.readInt();
            this.structures = DictIntIntHelper.read(arg1);
            this.needOpenGuildFlame = arg1.readBool();
            this.reiki = arg1.readInt();
            return;
        }

        public /* const */_type: int=17;

        public /* var */guildId: int;

        public /* var */guildName: string;

        public /* var */mapId: int;

        public /* var */structures: Map<any, any> /* flash.utils.Dictionary */;

        public /* var */needOpenGuildFlame: Boolean;

        public /* var */reiki: int;

        public static /* var */_regist: SGuildMap;
    }

            SGuildMap._regist = new SGuildMap(true);
        